<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="card">
      <div class="container">hello world 重复渐变的边框重复渐变的边框 重复渐变的边框重复渐变的边框 重复渐变的边框重复渐变的边框</div>
    </div>
  </body>
  <style>
    .container {
      padding: 10px;
      background-color: #fff;
    }
    .card {
      width: 300px;
      margin: 0 auto;
      color: #333;
      line-height: 1.8;
      border-radius: 10px;
      background-image: repeating-linear-gradient(-45deg, #e8544d, #e8544d 10px, #fff 10px, #fff 20px, #75adf8 20px, #75adf8 30px, #fff 30px, #fff 40px);
      background-size: 200% 200%;
      background-position: -40px -40px;
      transition: 1s;
      padding: 3px;
    }
    .card:hover {
      background-position: 0 0;
    }
  </style>
</html>
